var app = require('express')

var headerfix = require('../plugins/headerFix')

var statusobj = require('../plugins/routerStatus')

var routers = app.Router()

// routers

headerfix(routers)

routers.get('/mbs', (req, res) => {
    //req.query
    //res.send
    res.send({
        msg: req.query.id || 'ok',
        status: statusobj.ok
    })
})

routers.post('/mov', (req, res) => {
    //req.body
    //res.send
    res.send({
        msg: req.body.id || 'ok',
        status: statusobj.ok
    })
    res.status(200).send()
})


module.exports = routers